export function filterAsyncRoute(asnycRoute: any, routes: string[]) {
    return asnycRoute.filter((item: any) => {
      if (routes.includes(item.name)) {
        if (item.children && item.children.length > 0) {
          //硅谷333账号:product\trademark\attr\sku
          item.children = filterAsyncRoute(item.children, routes)
        }
        return true
      }
    })
  }